class UserEntity {
  dynamic userId;
  dynamic nickname;
  int gender;
  dynamic birthday;
  dynamic age;
  dynamic countryId;
  int level;
  int friendNum;
  int fansNum;
  int upsNum;
  int videoPrice;
  dynamic icon;
  int diamondNum;
  int userType;
  int valid;
  dynamic userTagType;
  dynamic disturbStatus;
  String token;
  dynamic yxAccid;
  dynamic imToken;
  int vip;
  bool isFirstCharge;
  bool canGetDiamond;
  dynamic anchorIncomeMap;
  String storeUrl;
  int vipExpireMs;
  bool onReview;
  bool isNew;

  bool isClose;

  int followNum;
  int visitorNum;
  String signature;

  bool followed;

  bool selected=false;

  UserEntity(
      {this.userId,
      this.nickname,
      this.gender,
      this.birthday,
      this.age,
      this.countryId,
      this.level,
      this.friendNum,
      this.fansNum,
      this.upsNum,
      this.videoPrice,
      this.icon,
      this.diamondNum,
      this.userType,
      this.valid,
      this.userTagType,
      this.disturbStatus,
      this.token,
      this.yxAccid,
      this.imToken,
      this.vip,
      this.isFirstCharge,
      this.canGetDiamond,
      this.anchorIncomeMap,
      this.storeUrl,
      this.vipExpireMs,
      this.onReview,
      this.isNew,
      this.followNum,
      this.visitorNum,
      this.signature,
      this.followed,
      });

  UserEntity.fromJson(Map<String, dynamic> json) {
    userId = json['userId'];
    nickname = json['nickname'];
    gender = json['gender'];
    birthday = json['birthday'];
    age = json['age'];
    countryId = json['countryId'];
    level = json['level'];
    friendNum = json['friendNum'];
    fansNum = json['fansNum'];
    upsNum = json['upsNum'];
    videoPrice = json['videoPrice'];
    icon = json['icon'];
    diamondNum = json['diamondNum'];
    userType = json['userType'];
    valid = json['valid'];
    userTagType = json['userTagType'];
    disturbStatus = json['disturbStatus'];
    token = json['token'];
    yxAccid = json['yxAccid'];
    imToken = json['imToken'];
    vip = json['vip'];
    isFirstCharge = json['isFirstCharge'];
    canGetDiamond = json['canGetDiamond'];
    anchorIncomeMap = json['anchorIncomeMap'];
    storeUrl = json['storeUrl'];
    vipExpireMs = json['vipExpireMs'];
    onReview = json['onReview'];
    isNew = json['new'];

    followNum = json['followNum'];
    visitorNum = json['visitorNum'];
    signature = json['signature'];
    followed = json['followed'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userId'] = this.userId;
    data['nickname'] = this.nickname;
    data['gender'] = this.gender;
    data['birthday'] = this.birthday;
    data['age'] = this.age;
    data['countryId'] = this.countryId;
    data['level'] = this.level;
    data['friendNum'] = this.friendNum;
    data['fansNum'] = this.fansNum;
    data['upsNum'] = this.upsNum;
    data['videoPrice'] = this.videoPrice;
    data['icon'] = this.icon;
    data['diamondNum'] = this.diamondNum;
    data['userType'] = this.userType;
    data['valid'] = this.valid;
    data['userTagType'] = this.userTagType;
    data['disturbStatus'] = this.disturbStatus;
    data['token'] = this.token;
    data['yxAccid'] = this.yxAccid;
    data['imToken'] = this.imToken;
    data['vip'] = this.vip;
    data['isFirstCharge'] = this.isFirstCharge;
    data['canGetDiamond'] = this.canGetDiamond;
    data['anchorIncomeMap'] = this.anchorIncomeMap;
    data['storeUrl'] = this.storeUrl;
    data['vipExpireMs'] = this.vipExpireMs;
    data['onReview'] = this.onReview;
    data['new'] = this.isNew;
    data['followNum'] = this.followNum;
    data['visitorNum'] = this.visitorNum;
    data['signature'] = this.signature;
    data['followed'] = this.followed;
    return data;
  }
}
